﻿@{this.Init(layout: "~/_SiteLayout.cshtml", title: "Registration Confirmation Page", action: Account.Confirm.Init);}   
    

@if(Page.Confirmed) {   
    <p>Registration Confirmed! Click on the Login tab to log in to the site.</p>
} 
else if (@Page.Errors.ConfirmAccount.IsError) {
    <p class="validation-error">@Page.Errors.ConfirmAccount.Message</p>
} else {
    <form method="post" action="">
        <fieldset>
            <legend>Confirmation Code</legend>
            <label for="confirmationCode">
                Please enter the confirmation code sent to you via email and 
                then click the <em>Confirm</em> button.
            </label>
            <input type="text" id="confirmationCode" name="confirmationCode" title="Confirmation code" />
            <input type="submit" value="Confirm" title="Confirm registration" />
        </fieldset>
    </form>
}